<div class="layui-form-item">
    <label class="layui-form-label">{$value['desc']|default=''}</label>
    <div class="layui-input-block">
        <select name="{$value['name']|default=''}" class="layui-select" lay-search>
            <option value="">请选择</option>
            {foreach $value['option'] as $key=>$vo}
            {if isset($vo['children'])&&$vo['children']}
            <optgroup label="{$vo[$value['title']]}">
                {foreach $vo['children'] as $k=>$v}
                <option value="{$v[$value['choice']]}">{$v[$value['title']]}</option>
                {/foreach}
            </optgroup>
            {else}
            <option value="{$vo[$value['choice']]}">{$vo[$value['title']]}</option>
            {/if}
            {/foreach}
        </select>
        <tip></tip>
    </div>
</div>